import {
    request
} from "@/network/request";


// 获取数据管理列表ShareInfo/GetMainList
export function ShareInfoGetMainList(params) {
    return request({
        url: '/api/ShareInfo/GetMainList',
        method: 'POST',
        params
    })
}


// 获取一个表的所有字段信息以查询记录
export function ShareDataGetTableFieldsForAdd(data) {
    return request({
        url: '/api/ShareData/GetTableFieldsForAdd',
        method: 'POST',
        data
    })
}

// 查询一个表的数据
export function ShareDataGetShareData2(data) {
    return request({
        url: '/api/ShareData/GetShareData2',
        method: 'POST',
        data
    })
}
// 新增保存
export function ShareDataSaveAddData(data) {
    return request({
        url: '/api/ShareData/SaveAddData',
        method: 'POST',
        data
    })
}


// 文件上传
export function ShareFileUpload(data) {
    return request({
        url: '/api/ShareFile/UploadCommonFile',
        method: 'POST',
        data: data,
    })
}
// 获取一个表的所有字段信息以查询记录
export function ShareDataGetShareFields(data) {
    return request({
        url: '/api/ShareData/GetShareFields',
        method: 'POST',
        data: data,
    })
}
// 修改保存
export function ShareDataSaveModifyData(data) {
    return request({
        url: '/api/ShareData/SaveModifyData',
        method: 'POST',
        data: data,
    })
}
// 删除多条记录保存
export function ShareDataDeleteRows(data) {
    return request({
        url: '/api/ShareData/DeleteRows',
        method: 'POST',
        data: data,
    })
}
// 获取下拉列表值
export function ShareDataGetOptionData(data) {
    return request({
        url: '/api/ShareData/GetOptionData',
        method: 'POST',
        data: data,
    })
}
// 根据表id和主键值获取详情以便修改
export function ShareDataGetTableFieldsForModify(data) {
    return request({
        url: '/api/ShareData/GetTableFieldsForModify',
        method: 'POST',
        data: data,
    })
}





